import request from '@/utils/request'

const api_name = '/product'

export default {
  getPageList(current, limit, userQuery) {
    return request({
      url: `${api_name}/page/${current}/${limit}`,
      method: 'post',
      data: userQuery
    })
  },
  judge(data) {
    return request({
      url: `${api_name}/judge`,
      method: 'post',
      data: data
    })
  },
  detail(data) {
    return request({
      url: `${api_name}/detail`,
      method: 'get',
      params: data
    })
  }

}
